package com.fqgj.xjd.user.client;

import com.fqgj.common.api.Response;
import com.fqgj.xjd.user.client.response.UserActivity;

import java.util.List;

/**
 * @program: cashmama-user
 * @description 用户活动服务
 * @author: frank
 * @create: 2020-04-16 14:05
 **/
public interface UserActivityService {

    /**
     * 已读活动/弹窗
     *
     * @param id
     * @param userCode
     * @return
     */
    Response<Boolean> readActivity(Long id, String userCode);

    /**
     * 获取活动/弹窗列表
     *
     * @param userCode
     * @param type
     * @return
     */
    Response<List<UserActivity>> queryActivityByUserCode(String userCode, Integer type);

    /**
     * 获取活动/弹窗列表
     *
     * @param packageName
     * @param userCode
     * @param type
     * @return
     */
    Response<List<UserActivity>> queryActivityByUserCode(String packageName, String userCode, Integer type);

}
